<template>
  <div class="createPost-container">
    <sticky :className="'sub-navbar'" :z-index="$upZindex">

      <el-button v-loading="loading" style="margin-left: 10px;" type="success" >{{$t('table.submit')}}
      </el-button>

    </sticky>

    <el-form class="form-container" :model="postForm" :rules="rules" ref="postForm" label-position="right" label-width="100px" style='width: 60%; margin-left:10px;margin-top:20px;'>

      <el-form-item label="编码" prop="code">
        <el-input v-model="postForm.code"></el-input>
      </el-form-item>
      <el-form-item label="名称" prop="code">
        <el-input v-model="postForm.name"></el-input>
      </el-form-item>
      <el-form-item label="URL" prop="code">
        <el-input v-model="postForm.url"></el-input>
      </el-form-item>
      <el-form-item label="编码" prop="code">
        <el-input v-model="postForm.code"></el-input>
      </el-form-item>
      <el-form-item label="名称" prop="code">
        <el-input v-model="postForm.name"></el-input>
      </el-form-item>
      <el-form-item label="URL" prop="code">
        <el-input v-model="postForm.url"></el-input>
      </el-form-item>
      <el-form-item label="编码" prop="code">
        <el-input v-model="postForm.code"></el-input>
      </el-form-item>
      <el-form-item label="名称" prop="code">
        <el-input v-model="postForm.name"></el-input>
      </el-form-item>
      <el-form-item label="URL" prop="code">
        <el-input v-model="postForm.url"></el-input>
      </el-form-item>
      <el-form-item label="编码" prop="code">
        <el-input v-model="postForm.code"></el-input>
      </el-form-item>
      <el-form-item label="名称" prop="code">
        <el-input v-model="postForm.name"></el-input>
      </el-form-item>
      <el-form-item label="URL" prop="code">
        <el-input v-model="postForm.url"></el-input>
      </el-form-item>

    </el-form>
  </div>
</template>

<script>
import Sticky from '@/components/Sticky' // 粘性header组件

const defaultForm = {
  code: ''
}

export default {
  name: 'userdetail',
  components: { Sticky },
  data() {
    return {
      postForm: Object.assign({}, defaultForm),
      loading: false,
      rules: {
        code: [{ required: true, message: '请选择类型', trigger: 'change' }]
      }
    }
  },
  computed: {
    contentShortLength() {
      return this.postForm.content_short.length
    }
  },
  created() {},
  methods: {
    submitForm() {}
  }
}
</script>

